package com.thomasmoerman.dci2.frw

import org.squeryl.PrimitiveTypeMode.{transaction => tx, inTransaction => inTx}

trait Transactional {

  def transaction[A](block: => A): A

  def inTransaction[A](block: => A): A

}

trait TransactionalWithSqueryl extends Transactional {
	
  def transaction[A](block: => A): A = tx(block)

  def inTransaction[A](block: => A): A = inTx(block)

}